package com.neo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neo.common.result.Result;
import com.neo.common.result.ResultEnum;
import com.neo.dao.UserMapper;

/** 
 * @Title: TestMybatis.java 
 * @author 杨大锤 E-mail: 
 * @class TestMybatis
 * @date 创建时间：2017年4月12日 上午10:36:31 
 * 
*/
@Service
public class TestMybatis {
	@Autowired
	UserMapper userMapper;
	public Result getAll(){
		Result result = new Result();
		result.setStatus(ResultEnum.SUCCESS.getValue());
		result.putData("list", userMapper.getAll());
		return result;
	}
}
